package cc.decat.escript.ir.expression;

import cc.decat.escript.ir.Node;
import cc.decat.escript.ir.Visitor;

public class ListIndexExpression extends Expression {

    private final Node expression;
    private final Node index;

    public ListIndexExpression(Node expression, Node index) {
        this.expression = expression;
        this.index = index;
    }

    @Override
    public void accept(Visitor visitor) {
        visitor.visit(this);
    }

    public Node getExpression() {
        return expression;
    }

    public Node getIndex() {
        return index;
    }
}
